﻿@model EventSys.BussinesEntities.Carrera

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Carrera</legend>

        <div class="editor-label">
            @Html.HiddenFor(model => model.idCarrera)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.idCarrera)
            @Html.ValidationMessageFor(model => model.idCarrera)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Carrera1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Carrera1)
            @Html.ValidationMessageFor(model => model.Carrera1)
        </div>

        <div class="editor-label">
            Facultad
        </div>
        <div class="editor-field">
            @Html.DropDownList("idFacultad") 
            @Html.ValidationMessageFor(model => model.idFacultad)

            @Ajax.ActionLink("Facultad", "Create","Facultad", 
            new AjaxOptions() { UpdateTargetId="showCreate" })
        </div>

        <p>
            <input type="submit" value="EDITAR" class="k-button"/>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>


<br /> <br />
<div id="showCreate" title="facultadddd" style="float:left;"></div>  


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
